package a.d.b;

import a.i.l;

import java.math.BigInteger;

public class y
  implements x
{
  private static final BigInteger a = BigInteger.valueOf(9223372036854775807L);
  private static final BigInteger b = BigInteger.valueOf(-9223372036854775808L);
  private static final int c = 62;
  public static final y d = new y(1L);
  public static final y e = new y(0L);
  private static final BigInteger f = new BigInteger("-1");
  protected boolean g = false;
  protected long h;
  protected int i;
  protected BigInteger j;
  public static boolean k;
  
  public y(long paramLong)
  {
    this.j = BigInteger.valueOf(paramLong);
    this.g = true;
    this.h = paramLong;
    this.i = 0;
    long l = Math.abs(this.h);
    while (l != 0L)
    {
      l >>= 1;
      this.i += 1;
    }
  }
  
  public y(BigInteger paramBigInteger)
  {
    this.j = paramBigInteger;
    if (!bool2)
    {
      if (this.j.compareTo(a) >= 0) {
        return;
      }
      if (bool2) {}
    }
    else
    {
      if (this.j.compareTo(b) <= 0) {
        return;
      }
      this.g = true;
      this.h = this.j.longValue();
      this.i = 0;
    }
    long l = Math.abs(this.h);
    do
    {
      if (l == 0L) {
        break;
      }
      l >>= 1;
      this.i += 1;
    } while (!bool1);
  }
  
  public x a()
  {
    return e;
  }
  
  public x b()
  {
    return d;
  }
  
  public x a(x paramx)
  {
    boolean bool = e.b;
    y localy = (y)paramx;
    if (!bool) {
      if (this.g)
      {
        if (bool) {
          break label96;
        }
        if (localy.g)
        {
          if (bool) {
            break label96;
          }
          if (this.i + 1 < 62)
          {
            if (bool) {
              break label96;
            }
            if (localy.i + 1 < 62) {
              return new y(this.h + localy.h);
            }
          }
        }
      }
    }
    label96:
    return new y(this.j.add(localy.j));
  }
  
  public x b(x paramx)
  {
    boolean bool = e.b;
    y localy = (y)paramx;
    if (!bool) {
      if (this.g)
      {
        if (bool) {
          break label96;
        }
        if (localy.g)
        {
          if (bool) {
            break label96;
          }
          if (this.i + 1 < 62)
          {
            if (bool) {
              break label96;
            }
            if (localy.i + 1 < 62) {
              return new y(this.h - localy.h);
            }
          }
        }
      }
    }
    label96:
    return new y(this.j.subtract(localy.j));
  }
  
  public x c(x paramx)
  {
    boolean bool = e.b;
    y localy = (y)paramx;
    if (!bool) {
      if (this.g)
      {
        if (bool) {
          break label114;
        }
        if (localy.g)
        {
          if (bool) {
            break label114;
          }
          if (this.i + localy.i < 62)
          {
            if (!bool)
            {
              if (this.h == 1L) {
                return localy;
              }
              if (bool) {}
            }
            else if (localy.h == 1L)
            {
              return this;
            }
            return new y(this.h * localy.h);
          }
        }
      }
    }
    label114:
    return new y(this.j.multiply(localy.j));
  }
  
  public x d(x paramx)
  {
    y localy = (y)paramx;
    return new y(this.j.divide(localy.j));
  }
  
  public x f()
  {
    return new y(this.j.multiply(this.j));
  }
  
  public x e(x paramx)
  {
    y localy = (y)paramx;
    return new y(this.j.gcd(localy.j));
  }
  
  public int d()
  {
    return this.j.signum();
  }
  
  public x g()
  {
    boolean bool = e.b;
    if (!bool)
    {
      if (f(e) >= 0) {
        return this;
      }
      if (bool) {}
    }
    else if (this.g)
    {
      return new y(Math.abs(this.h));
    }
    return new y(this.j.abs());
  }
  
  public x c()
  {
    return new y(this.j.negate());
  }
  
  public int f(x paramx)
  {
    boolean bool = e.b;
    y localy = (y)paramx;
    if (!bool) {
      if (this.g)
      {
        if (bool) {
          break label84;
        }
        if (localy.g)
        {
          if (bool) {
            break label84;
          }
          if (this.i + 1 < 62)
          {
            if (bool) {
              break label84;
            }
            if (localy.i + 1 < 62) {
              return l.a(this.h, localy.h);
            }
          }
        }
      }
    }
    label84:
    return this.j.compareTo(localy.j);
  }
  
  public double e()
  {
    if (!e.b) {
      if (this.g) {
        return this.h;
      }
    }
    return this.j.doubleValue();
  }
  
  public float h()
  {
    if (!e.b) {
      if (this.g) {
        return (float)this.h;
      }
    }
    return this.j.floatValue();
  }
  
  public int i()
  {
    if (!e.b) {
      if (this.g) {
        return (int)this.h;
      }
    }
    return this.j.intValue();
  }
  
  public boolean equals(Object paramObject)
  {
    boolean bool = e.b;
    if (!bool) {
      if (paramObject == this) {
        return true;
      }
    }
    if (!bool) {
      if (!(paramObject instanceof y)) {
        return false;
      }
    }
    y localy = (y)paramObject;
    if (!bool) {
      if (this.g)
      {
        if (bool) {
          break label88;
        }
        if (localy.g)
        {
          if (!bool) {}
          return this.h == localy.h;
        }
      }
    }
    label88:
    return this.j.equals(localy.j);
  }
  
  public String toString()
  {
    if (!e.b) {
      if (this.g) {
        return Long.toString(this.h);
      }
    }
    return this.j.toString();
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.d.b.y

 * JD-Core Version:    0.7.0.1

 */